﻿@model MvcPaging.IPagedList<TuanAnhPersonalWeb.Models.aspnet_Roles>
@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
}

<h2>Roles Management</h2>
     <div id="divSearch">
       @{Html.RenderPartial("_SearchControl", this.Model);}
    </div>
     <p>@Html.ActionLink("Create New", "Create")</p>
    <div id="divGrid">
            @{Html.RenderPartial("_ListControl", this.Model);}
    </div>
 


    <script type="text/javascript">

        function beginPaging(args) {
            // Animate
            $('#divGrid').fadeOut('normal');
        }

        function successPaging() {
            // Animate
            $('#divGrid').fadeIn('normal');
        }

        function failurePaging() {
            alert("Could not retrieve contacts.");
        }

    </script>
